<?php
/**
 * Created By Project
 * Author: 陈东
 * Copyright：陈东
 * Source Code：陈东
 * Explain：I shall not authorize for any other commercial purposes, law breakers must be prosecuted.
 */
namespace Home\Controller;
use Think\Controller;

class OutlinkController extends Controller {

	public function index(){
		$domainid = I('get.domain');
		if(!empty($domainid)){
			$type = D(C('TABLE_TYPE'));
			$typeResult = $type->field('id')->where(array('domainid'=>$domainid))->find();
			if(!empty($typeResult)){
				$url = C('WEBDOMAIN')."/Home/Index/index/domainid/".$domainid."/rootid/".$typeResult['id'];
				header('Location:'.$url);
			}
		}
	}

}